cmake_minimum_required(VERSION 3.0.2)
project(lib_client_try)
add_compile_options(-std=c++11)


find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})


include_directories(${PROJECT_SOURCE_DIR}/include/tcpclient/)


SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

set(LIB_DIR /${PROJECT_SOURCE_DIR}/lib)
link_directories(${LIB_DIR})




#include src
add_executable(client_try
    src/main.cpp 
)

target_link_libraries(client_try
  ${OpenCV_LIBS}
  libclient.so
  libjsoncpp.so
)
